package com.xuliugen.rpc.provider;

import com.xuliugen.rpc.api.RpcCalc;

/**
 * 远程调用接口的实现类
 * 服务提供者
 * @author xuliugen
 * @date 2018/6/6
 */
public class RpcCalcImpl implements RpcCalc {

    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public int mult(int a, int b) {
        return a * b;
    }

    @Override
    public int div(int a, int b) {
        return a / b;
    }
}
